package com.lzk.common;


public class BaseUtils {
    private static ThreadLocal<Long> threadLocal=new ThreadLocal<>();

    //将修改者的id存入线程中的存储空间
    public static void setEmpId(Long id){
        threadLocal.set(id);
    }
    //获取存储空间的值
    public static Long getEmpId(){
        return threadLocal.get();
    }


}
